package com.aitao.files.ext;

import java.io.File;
import java.net.URI;

/**
 * 扩展文件接口
 *
 * @Company QAX
 * @Author : admin
 * @Create : 2022/1/26 11:17
 */
public abstract class AbstractFile extends File {
    public AbstractFile(String pathname) {
        super(pathname);
    }

    public AbstractFile(String parent, String child) {
        super(parent, child);
    }

    public AbstractFile(File parent, String child) {
        super(parent, child);
    }

    public AbstractFile(URI uri) {
        super(uri);
    }

    /**
     * 检测文件类型
     *
     * @return {@link String 文件类型}
     */
    public abstract String getType();
}
